<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  <title>Demo Ajax serveur distant</title>
  <script type="text/javascript" src="http://prototypejs.org/assets/2009/6/16/prototype.js"></script>
	<script type="text/javascript">
	var checkParent = function () {
		var parentnode = window.parent.document.getElementById('parentmail').value;
		$('childmail').value = parentnode;
	};
	
</script>
</head>
<body>

<FORM name="ajax" id="idAjax" method="POST" action="">
	<input type="text" size="35" id="childmail" value="">
	<input type="submit" size="35" value = ">" id="submit" onclick="checkParent();">
</FORM>


</body>
</html>